package net.hn.hnms.biz.safety.wind.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author 智呈物联 nzw
 * @date 2022/12/20
 */

@Data
@Entity
@Table(name = "wind_resistance")
public class WindResistanceEntity {

    @ApiModelProperty(value = "巷道对应uid")
    @Column(name = "tunnel_uid")
    @TableId(value = "tunnel_uid")
    @Id
    private Long id;

    @Column(name = "tunnel_name")
    @ApiModelProperty(value = "巷道名称")
    private String tunnelName;

    @Column(name = "ventilation_resistance")
    @ApiModelProperty(value = "通风阻力,-1000000-故障状态")
    private BigDecimal ventilationResistance;

    @Column(name = "last_normal_ventilation_resistance")
    @ApiModelProperty(value = "最近一次正常的通风阻力")
    private BigDecimal lastNormalVentilationResistance;

    @Column(name = "air_volume")
    @ApiModelProperty(value = "风量,m3/min")
    private BigDecimal airVolume;

    @Column(name = "air_resistance")
    @ApiModelProperty(value = "风阻 ")
    private BigDecimal airResistance;

    @Column(name = "friction_resistance_coefficient")
    @ApiModelProperty(value = "摩擦阻力系数")
    private BigDecimal frictionResistanceCoefficient;

    @Column(name = "tunnel_length")
    @ApiModelProperty(value = "巷道长度")
    private BigDecimal tunnelLength;

    @Column(name = "section_type")
    @ApiModelProperty(value = "断面类型，0-矩形、1-半圆拱、2-三心拱、3-圆形、4-梯形")
    private Integer sectionType;

    @Column(name = "sectional_area")
    @ApiModelProperty(value = "断面机")
    private BigDecimal sectionalArea;

    @Column(name = "width")
    @ApiModelProperty(value = "巷宽")
    private BigDecimal width;

    @Column(name = "height")
    @ApiModelProperty(value = "行高（直径）")
    private BigDecimal height;

    @Column(name = "perimeter")
    @ApiModelProperty(value = "周长")
    private BigDecimal perimeter;

    @Column(name = "natural_wind_pressure")
    @ApiModelProperty(value = "自然风压")
    private BigDecimal naturalWindPressure;

    @Column(name = "gravity")
    @ApiModelProperty(value = "密度")
    private BigDecimal gravity;

    @Column(name = "mine_code")
    @ApiModelProperty(value = "煤矿编码")
    private BigDecimal mineCode;
}
